import VueRouter from 'vue-router'
import HomeContainer from '../components/HomeContainer.vue'
import MenberContainer from '../components/MenberContainer.vue'
import ShopContainer from '../components/ShopContainer.vue'
import SearchContainer from '../components/SearchContainer.vue'
import NewList from '../components/news/NewList.vue'
import NewInfo from '../components/news/NewInfo.vue'
import Comment from '../components/subcompoments/Comment.vue'
import PhotoList from '../components/Photos/PhotoList.vue'
import PhotoInfo from '../components/Photos/PhotoInfo.vue'
import BookList from '../components/Book/BookList.vue'
import BookInfo from '../components/Book/BookInfo.vue'
import BooksDesc from '../components/Book/BooksDesc.vue'
import BooksComment from '../components/Book/BooksComment.vue'

export default new VueRouter({
  routes:[
     {path:'/HomeContainer',component:HomeContainer},
     {path:'/',redirect:'/HomeContainer' },
     {path:'/ShopContainer',component:ShopContainer },
     {path:'/MenberContainer',component:MenberContainer },
     {path:'/SearchContainer',component:SearchContainer },
     {path:'/HomeContainer/NewList',component:NewList},
     {path:'/HomeContainer/NewInfo/:id',component:NewInfo},
     {path:'/Comment',component:Comment},
     {path:'/HomeContainer/PhotoList',component:PhotoList},
      {path:'/HomeContainer/PhotoInfo/:id',component:PhotoInfo},
     {path:'/HomeContainer/BookList',component:BookList},
     {path:'/HomeContainer/BookList/BookInfo/:id',component:BookInfo,name:'bookinfo'},
     {path:'/HomeContainer/BooksComment/:id',component:BooksComment,name:'bookscomment'},
     {path:'/HomeContainer/BooksDesc/:id',component:BooksDesc,name:'booksdesc'},
  ],
  linkActiveClass:'mui-active'
})
